#include "stdafx.h"
#include "ClassPeople.h"


ClassPeople::ClassPeople()
{
}

ClassPeople::~ClassPeople()
{
}

void ClassPeople::SetID(int x)
{
	id = x;
}

void ClassPeople::SetNian(int x)
{
	nian = x;
}

void ClassPeople::SetYue(int x)
{
	yue = x;
}

void ClassPeople::SetBaZi(string str)
{
	ba_zi = str;
}

void ClassPeople::SetWuXing(float arr[])
{
	memcpy(wu_xing_average, arr, 5 * sizeof(float));
}

void ClassPeople::SetContain(int x,int y)
{
	contain = x + y;
}

void ClassPeople::SetZuo(int z)
{
	zuo_next = z;
}

void ClassPeople::SetYou(int y)
{
	you_next = y;
}

//void ClassPeople::SetZuo(ClassPeople * z)
//{
//	zuo_next = z;
//}
//
//void ClassPeople::SetYou(ClassPeople * y)
//{
//	you_next = y;
//}

int ClassPeople::GetID() const
{
	return id;
}

int ClassPeople::GetNian() const
{
	return nian;
}

int ClassPeople::GetYue() const
{
	return yue;
}

string ClassPeople::GetBaZi() const
{
	return ba_zi;
}

const float * ClassPeople::GetWuXing() const
{
	return wu_xing_average;
}

int ClassPeople::GetContain() const
{
	return contain;
}

int ClassPeople::GetZuo() const
{
	return zuo_next;
}

int ClassPeople::GetYou() const
{
	return you_next;
}

//ClassPeople * ClassPeople::GetZuo() const
//{
//	return zuo_next;
//}
//
//ClassPeople * ClassPeople::GetYou() const
//{
//	return you_next;
//}

